<?php

namespace app\index\controller;

use think\Controller;
use think\Request;
use app\index\model\Admin;

class UserController extends Controller
{
    public function login(Admin $admin)
    {
       $user_name = input('post.user_name','yulidong');
       $pwd = input('post.password','123456');
        dump($admin->login($user_name,$pwd));
    }

    public function login_view()
    {
        return view();
    }
}
